예제 #1
0
        public void IncludeUpdateTest()
        {
            var userBuilder   = new UserAggregateBuilder();
            var userAggregate = userBuilder.GetRandomUserAggregate();
            var user          = UserAggregate.Update(userAggregate.Id, userAggregate);

            userAggregate.Should().BeEquivalentTo(user);
        }
예제 #2
0
        public void CreateTest()
        {
            var builder = new UserAggregateBuilder();
            var user    = UserAggregate.Create(
                builder.userName,
                builder.passwordHash,
                builder.role);

            user.Should().As <UserAggregate>();
        }