public void GetEventStoreStream_ReturnsClassName_hyphen_Id() { var entity = new AggregateA(); var actual = entity.GetEventStoreStream(); var expected = string.Format("AggregateA-{0}", entity.Id); Assert.Equal(expected, actual); }
public void It_maps_aggregate_to_aggregate() { var a = new AggregateA{Id = 4770, Prop = new A {String = "hello world", Int = 42}}; var b = mapper.Map<AggregateA, AggregateB>(a); Assert.NotNull (b); Assert.NotNull (b.Prop); Assert.Equal (a.Id, b.Id); Assert.Equal (a.Prop.Int, b.Prop.Int); Assert.Equal (a.Prop.String, b.Prop.String); }