Example #1
0
        public async Task GetCompetentAuthorityById_AuthorityShouldBeReturned(Guid id, string abbreviation)
        {
            using (var database = new DatabaseWrapper())
            {
                var helper = new ModelHelper(database.Model);

                var dataAccess = new CommonDataAccess(database.WeeeContext);

                var result = await dataAccess.FetchCompetentAuthorityById(id);

                result.Abbreviation.Should().Be(abbreviation);
            }
        }