Ejemplo n.º 1
0
        public void GetUserByUserName()
        {
            //Arrange
            FakeTripRepository repo = new FakeTripRepository();

            //Act
            repo.AddUser(new User()
            {
                UserName  = "******",
                Password  = "******",
                FirstName = "Bernie",
                LastName  = "Doodle",
                Email     = "*****@*****.**",
                Bio       = "Ball is life"
            });

            User user = repo.GetUserByUserName("BernieD");

            //Assert
            Assert.Equal("Bernie", user.FirstName);
        }