Exemple #1
0
        public GetPanAreasHandlerTests()
        {
            context       = A.Fake <WeeeContext>();
            authorization = A.Fake <IWeeeAuthorization>();
            mapper        = A.Fake <PanAreaMap>();

            A.CallTo(() => context.PanAreas).Returns(dbHelper.GetAsyncEnabledDbSet(new List <PanArea>
            {
                new PanArea()
                {
                    Name = "North", CompetentAuthorityId = Guid.NewGuid(), Id = Guid.NewGuid()
                },
                new PanArea()
                {
                    Name = "East", CompetentAuthorityId = Guid.NewGuid(), Id = Guid.NewGuid()
                },
                new PanArea()
                {
                    Name = "South", CompetentAuthorityId = Guid.NewGuid(), Id = Guid.NewGuid()
                },
                new PanArea()
                {
                    Name = "West", CompetentAuthorityId = Guid.NewGuid(), Id = Guid.NewGuid()
                },
            }));

            handler = new GetPanAreasHandler(context, authorization, mapper);
        }
Exemple #2
0
 public PanAreaMapTests()
 {
     mapper = new PanAreaMap();
 }