Example #1
0
        public void Create_entity_from_IAggregateRoot()
        {
            var id            = new IdFake(10);
            var aggregateRoot = new AggregateRootFake(id);

            aggregateRoot.Should().BeAssignableTo <IAggregateRoot>();
        }
Example #2
0
        public async Task should_add_to_database()
        {
            await _database.Create(_aggregate);

            var readAggregate = await _database.Get(_id);

            _aggregate.Should().Be(readAggregate);
        }