Example #1
0
        public async void Service_Return_Priority_List()
        {
            using (var context = new InMemoryDbContextFactory().GetDbContext())
            {
                var repositoryPriority   = new Repository <Priority, int>(context);
                var repositoryStatus     = new Repository <Status, int>(context);
                var repositoryTicketType = new Repository <TicketType, int>(context);

                var serviceParameters = new ParametersService(repositoryPriority, repositoryStatus, repositoryTicketType);

                var list = await serviceParameters.GetPriorityList();

                Assert.NotEmpty(list);
            }
        }