public async Task TestGetCrossPathByIdAsyncMethod() { var service = new CrossesService(crossRepo.Object, obituaryRepo.Object); var crossPath = await service.GetCrossPathByIdAsync("2"); Assert.Equal("Path2", crossPath); }
public void TestShowAllCrossesMethodReturnsPropertyValue() { var service = new CrossesService(crossRepo.Object, obituaryRepo.Object); var crossesCount = service.ShowAllCrosses().Count(); Assert.Equal(2, crossesCount); }