public void ThatUserCanBeConstructedUsingValidDto() { var user = User.Create(UserTestFixtures.GetValidUserDto()); Assert.IsNotNull(user); Assert.AreEqual(user.Name, UserTestFixtures.GetValidUserDto().Name); }
public void ThatUserCanBeRetrievedById() { var user = UserServices.WithDto(UserTestFixtures.GetValidUserDto()).Get(); Assert.AreEqual(user.Name, UserTestFixtures.GetValidUserDto().Name); var user2 = UserServices.GetUserById(user.Id); Assert.AreSame(user, user2); }
private static User CreateUser() { return(UserTestFixtures.CreateFooBarUser()); }
public void ThatAuserCanBeGet() { var user = UserServices.WithDto(UserTestFixtures.GetValidUserDto()).Get(); Assert.AreEqual(user.Name, UserTestFixtures.GetValidUserDto().Name); }