public void Create_entity_from_IAggregateRoot() { var id = new IdFake(10); var aggregateRoot = new AggregateRootFake(id); aggregateRoot.Should().BeAssignableTo <IAggregateRoot>(); }
public async Task should_add_to_database() { await _database.Create(_aggregate); var readAggregate = await _database.Get(_id); _aggregate.Should().Be(readAggregate); }