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