Beispiel #1
0
        public void GetAllFilterByCurrent_Test()
        {
            // Arrange
            var mockService = new Mock <ILanguageService>();
            var controller  = new LanguageController(mockService.Object);

            // Act
            IQueryable <LanguageModel> response = controller.GetAll();

            Assert.AreEqual(response.Where(x => x.IsCurrent).Count(), response.Count());
        }
Beispiel #2
0
        public void GetAll_Test()
        {
            // Arrange
            var mockService = new Mock <ILanguageService>();
            var controller  = new LanguageController(mockService.Object);

            // Act
            IQueryable <LanguageModel> response = controller.GetAll();

            // Assert
            Assert.IsNotNull(response);
        }