コード例 #1
0
        private void AddTwoPersons(TestDBsProvider dbsProvider)
        {
            using (var w = new RegistersWrapper(dbsProvider)) {
                IPeopleRegister register = w.New.PeopleRegister();

                register.Add(new PersonRow {
                    Id = Id1, Name = Name1, Surname = Surname1
                });
                register.Add(new PersonRow {
                    Id = Id2, Name = Name2, Surname = Surname2
                });
            }
        }
コード例 #2
0
        private void AddThreePersons(TestDBsProvider dbsProvider)
        {
            this.AddTwoPersons(dbsProvider);

            using (var w = new RegistersWrapper(dbsProvider)) {
                IPeopleRegister peopleRegister = w.New.PeopleRegister();
                peopleRegister.Add(new PersonRow {
                    Id = Id3, Name = Name3, Surname = Surname3
                });
            }
        }