public void LoginReturnsTheConcatNames() { // Arrange var repoClass = new MemeSaverRepo(); var businessClass = new UserMethods(repoClass); // this class uses the repos class methods so it needs tso be created with the repo class injected. Person p = new Person() { Fname = "Mark", Lname = "Moore" }; // Act //Person actual = businessClass.Login(p); Person actual = businessClass.Login(p); // Assert Assert.Equal("MarkMooreJerry", actual.Fname); Assert.Equal("MooreMarkMooreWalker", actual.Lname); }
public UserMethods(MemeSaverRepo repolayer) { this.repolayer = repolayer; }