Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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);
        }