發表文章

目前顯示的是 12月 10, 2018的文章

Correct syntax for mocking MVVMCross navigation service using Moq

圖片
up vote 0 down vote favorite 1 I am quite new to MVVMCross and Moq and I need some help with the format of mocking the MvxNavigation Service. I have a call in my code which I want to mock. I would have thought I could have set the return value by doing something along the lines of: _naviageService.Setup(n => n.Navigate<PlaceSelectViewModel, Place, Place>(It.IsAny<Place>())).Returns(returnPlace); but this does not compile. I have tried looking in the Moq quick start and MVVMCross example but can’t seem to find what I want. Please find complete sample below as requested: Tnx public class FooClass { IMvxNavigationService _navigationService; public IMvxAsyncCommand SelectPlaceCommand { get; } public FooClass(IMvxNavigationService navigationService) { _navigationService = navigati...

Ravensbrück concentration camp

圖片
Women's concentration camp in Germany during World War II Ravensbrück Concentration camp Female prisoners at Ravensbrück, 1939 Location of Ravensbrück within Germany Location Fürstenberg/Havel, Germany Commandant Günther Tamaschke (May 1939 to August 1939) Max Koegel (January 1940 to August 1942) Fritz Suhren (August 1942 to April 1945) Operational May 1939 – April 1945 Number of gas chambers 1 Inmates Mostly female political prisoners, a plurality Polish; also 26,000 Jews Number of inmates 130,000 [1] to 132,000 [2] Killed 45,000–50,000 [3] to 117,000 [2] View of the barracks at Ravensbrück Ravensbrück ( pronounced [ʁaːvənsˈbʁʏk] ) was a German concentration camp exclusively for women from 1939 to 1945, located in northern Germany, 90 km (56 mi) north of Berlin at a site near the village of Ravensbrück (part of Fürstenberg/Havel). The largest single national group consisted of 40,000 Polish women. Others included 26...