public void IncludeUpdateTest() { var userBuilder = new UserAggregateBuilder(); var userAggregate = userBuilder.GetRandomUserAggregate(); var user = UserAggregate.Update(userAggregate.Id, userAggregate); userAggregate.Should().BeEquivalentTo(user); }
public void CreateTest() { var builder = new UserAggregateBuilder(); var user = UserAggregate.Create( builder.userName, builder.passwordHash, builder.role); user.Should().As <UserAggregate>(); }