示例#1
0
        public void TestCheckForOwnerName()
        {
            //Arrange
            repo = new FakeRequestRepo();
            SeedRequestData();
            foreach (Request r in requests)
            {
                repo.AddRequest(r);
            }

            //Act
            bool stiles = repo.CheckForOwnerName("Stiles");
            bool robin  = repo.CheckForOwnerName("robinhood");

            //Assert
            Assert.True(stiles);
            Assert.False(robin);
        }