コード例 #1
0
        public void PersonInsert()
        {
            var thing = new ThingsListModel()
            {
                Name = "Obraz"
            };
            var inserted = thingRepositorySUT.Insert(thing);

            Assert.NotNull(inserted);
            using (var context = new GalleryDbContext())
            {
                Assert.Contains(context.Things, x => x.Id == inserted.Id);
            }
        }
コード例 #2
0
        void AddThingsInList()
        {
            var things = new ThingsListModel();

            things.Name = Name;
            thingRepository.Insert(things);
            OnLoad();
            messenger.Send(new ThingsOrPeronsUpdatedMessage());
        }