public void StoresAPerson() { const string Name = "Clean Coder"; var person = new Person { Name = Name, Title = Title.Sir }; this.testee.Save(person); Person loadedPerson = this.testee.Load(Name); loadedPerson.ShouldBeEquivalentTo(new Person { Name = person.Name, Title = person.Title }); }
public void Save(Person person) { this.store[person.Name] = person; }