Exemple #1
0
        public void GetTimeIdentifiersByCategory()
        {
            var controller = new MetaController(new MetaService());

            var result = controller.GetTimeIdentifiersByCategory();

            result.AssertOkResult();
        }
Exemple #2
0
        public void Get_TimeIdentifiersByCategory_Returns_Ok()
        {
            var metaService = new MetaService(null /* do not need */);
            var controller  =
                new MetaController(metaService);

            // Method under test
            var result = controller.GetTimeIdentifiersByCategory();

            Assert.IsAssignableFrom <List <TimeIdentifierCategoryModel> >(result.Value);
        }