public void Create_ValidGroup_ShouldStoreGroupViaContext()
        {
            supplierGroupDal.Create(new SupplierGroup(102, "some name"));

            groups.Verify(s => s.Add(It.IsAny <SqlSupplierGroup>()), Times.Once);
            context.Verify(c => c.SaveChanges(), Times.Once);
        }
Beispiel #2
0
        public void CreateSupplierGroup(int id, string name)
        {
            var supplierGroup = new SupplierGroup(id, name);

            supplierGroupDal.Create(supplierGroup);
        }