public void HandleTest872()
        {
            LookupGamePlayersDto   lookupGamePlayersDto;
            GetPlayerStatisticsDto getPlayerStatisticsDto;
            FakeQueryDataStore     fakeQueryDataStore;
            GameDeletedEvent       gameDeletedEvent;

            using (IPexObserveContext observer = PexObserve.NewTest())
            {
                Guid s0 = new Guid
                              (default(int), (short)32, (short)32, default(byte), default(byte),
                              default(byte), default(byte), default(byte),
                              default(byte), default(byte), default(byte));
                lookupGamePlayersDto                 = new LookupGamePlayersDto();
                lookupGamePlayersDto.GameId          = s0;
                lookupGamePlayersDto.PlayerName      = (string)null;
                lookupGamePlayersDto.Placing         = 0;
                lookupGamePlayersDto.Winnings        = 0;
                lookupGamePlayersDto.PayIn           = 0;
                getPlayerStatisticsDto               = new GetPlayerStatisticsDto();
                getPlayerStatisticsDto.PlayerName    = (string)null;
                getPlayerStatisticsDto.GamesPlayed   = 0;
                getPlayerStatisticsDto.Winnings      = 0;
                getPlayerStatisticsDto.PayIn         = 0;
                getPlayerStatisticsDto.Profit        = 0;
                getPlayerStatisticsDto.ProfitPerGame = 0;
                fakeQueryDataStore = new FakeQueryDataStore();
                gameDeletedEvent   = new GameDeletedEvent();
                GetPlayerStatisticsHandler s1 = new GetPlayerStatisticsHandler();
                ((BaseHandler)s1).QueryDataStore = (IQueryDataStore)fakeQueryDataStore;
                LookupGamePlayersDto[]   lookupGamePlayersDtos = new LookupGamePlayersDto[2];
                GetPlayerStatisticsDto[] getPlayerStatisticsDtos
                    = new GetPlayerStatisticsDto[1];
                lookupGamePlayersDtos[0]   = lookupGamePlayersDto;
                lookupGamePlayersDtos[1]   = lookupGamePlayersDto;
                getPlayerStatisticsDtos[0] = getPlayerStatisticsDto;
                this.HandleTest
                    (s1, gameDeletedEvent, lookupGamePlayersDtos, getPlayerStatisticsDtos);
                Assert.IsNotNull((object)s1);
                Assert.IsNotNull(((BaseHandler)s1).QueryDataStore);
                GetPlayerStatisticsDto ovplayerStats
                    = observer.GetObservedValue <GetPlayerStatisticsDto>("playerStats");
                Assert.IsNotNull((object)ovplayerStats);
                Assert.AreEqual <string>((string)null, ovplayerStats.PlayerName);
                Assert.AreEqual <int>(0, ovplayerStats.GamesPlayed);
                Assert.AreEqual <int>(0, ovplayerStats.Winnings);
                Assert.AreEqual <int>(0, ovplayerStats.PayIn);
                Assert.AreEqual <int>(0, ovplayerStats.Profit);
                Assert.AreEqual <double>(0, ovplayerStats.ProfitPerGame);
            }
        }
Esempio n. 2
0
        public void FooTest761()
        {
            string s;

            using (IPexObserveContext observer = PexObserve.NewTest())
            {
                Bar s0 = new Bar();
                Foo s1 = new Foo();
                s = this.FooTest(s0, s1, true, false);
                Assert.AreEqual <string>("Hello, World!", s);
                Assert.IsNotNull((object)s0);
                string ovHello__World_ = observer.GetObservedValue <string>("Hello, World!");
                Assert.AreEqual <string>("Foo", ovHello__World_);
            }
        }