public void factory_should_return_null()
        {
            var competenciesChanged = FakeEmployee.ArrangeCompetenciesChanged(Guid.NewGuid());
            var factory = new AggregateFactory();

            var employee = factory.CreateFrom(competenciesChanged);

            employee.Should().BeNull();
        }
        public void factory_should_create_user()
        {
            var userCreated = FakeUser.ArrangeCreated();
            var factory = new AggregateFactory();

            var user = factory.CreateFrom(userCreated).As<User>();

            user.Should().NotBeNull();
            FakeUser.AssertUserCreated(user);
        }