public void CanAddKind() { using(EF_ZMT_DbContext.EF_ZMT_DbContext context = new EF_ZMT_DbContext.EF_ZMT_DbContext()) { context.Context.ExecuteStoreCommand("DELETE FROM Kind"); FixedAssetService transaction = new FixedAssetService(); Kind kind = new Kind() { name = "N491" }; transaction.AddKind(kind); Assert.AreEqual(context.Context.Kinds.Count(), 1); kind = context.Context.Kinds.FirstOrDefault(x => x.name == "N491"); Assert.IsNotNull(kind); } }