public void SetUp() { mocks = new Mockery(); mocksGeolocations = mocks.NewMock <IGeolocations>(); var geipoints = new List <GeoPointDto>(); geipoints.Add(new GeoPointDto { DeviceSn = "000010274", Imei = "352848024123388", Latitude = 0.1, Longitude = 0.2, }); Expect.Once.On(mocksGeolocations) .Method("GetLocationsByImei") .With(Is.Anything, Is.Anything, Is.Anything) .Will(Return.Value(geipoints)); }
public void SetUp() { writer = new GeolocationsMongoDBWriter(server); reader = new GeolocationsMongoDB(server); }
public void SetUp() { mongoGeolocations = new GeolocationsMongoDB(server); }
public void SetUp() { mocks = new Mockery(); mocksGeolocations = mocks.NewMock<IGeolocations>(); var geipoints = new List<GeoPointDto>(); geipoints.Add(new GeoPointDto { DeviceSn = "000010274", Imei = "352848024123388", Latitude = 0.1, Longitude = 0.2, }); Expect.Once.On(mocksGeolocations) .Method("GetLocationsByImei") .With(Is.Anything, Is.Anything, Is.Anything) .Will(Return.Value(geipoints)); }