public JsonDotNetResult Create(RegistrationCreateCommand command)
        {
            return Execute(
                action: () =>
                            {
                                var registration = new Registration();
                                registration.Update(command);

                                RavenSession.Store(registration);
                                RavenSession.SaveChanges();
                                return new JsonDotNetResult(registration);
                            });
        }
Пример #2
0
 public bool Equals(Registration other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Id, Id);
 }
 public void GivenANewRegistration()
 {
     _registration = new Registration();
 }