public async Task CheckInNoTime() { var locationService = CreateMockLocationService(); var imeiService = CreateMockIMEIService(); var controller = new MapController(locationService.Object, imeiService.Object, null); var testDate = TestDate.ToString("ddMMyy"); var res = await controller.CheckIn(TestIMEI, TestLatitude, TestLongitude, null, testDate); var view = res as ContentResult; Assert.NotNull(view); }
public async Task CheckInGoodData() { var locationService = CreateMockLocationService(); var imeiService = CreateMockIMEIService(); var controller = new MapController(locationService.Object, imeiService.Object, null); var testDate = TestDate.ToString("ddMMyy"); var testTime = TestDate.ToString("HHmmss.fff"); var res = await controller.CheckIn(TestIMEI, TestLatitude, TestLongitude, testTime, testDate); locationService.Verify(LocationRegisterExpression); var view = res as ContentResult; Assert.NotNull(view); }