public void CanCreateInstanceWithParameters() { var aggregateType = typeof(MyDynamicEventSourcedAggregateRoot).FullName; var aggregateId = Guid.NewGuid(); var snapshot = new MySnapshot(22).WithVersion(2); var testee = new SnapshotDescriptor(aggregateType, aggregateId, snapshot); testee.AggregateType.Should().Be(aggregateType); testee.AggregateId.Should().Be(aggregateId); testee.Version.Should().Be(2); testee.Timestamp.Should().BeCloseTo(DateTime.Now, 1000); testee.SnapshotType.Should().Be("SimpleDomain.TestDoubles.MySnapshot"); testee.Snapshot.Should().BeSameAs(snapshot); }
public void CanCreateParameterlessInstance() { var testee = new SnapshotDescriptor(); testee.Should().NotBeNull(); }