public void GetAllFilterByCurrent_Test() { // Arrange var mockService = new Mock <IKupahService>(); var controller = new KupahController(mockService.Object); // Act IQueryable <KupahModel> response = controller.GetAll(); Assert.AreEqual(response.Where(x => x.IsCurrent).Count(), response.Count()); }
public void GetAll_Test() { // Arrange var mockService = new Mock <IKupahService>(); var controller = new KupahController(mockService.Object); // Act IQueryable <KupahModel> response = controller.GetAll(); // Assert Assert.IsNotNull(response); }