public void CreateStoreManager_StoreAlreadyExsistInDatabase_StoremanangerCreatedWithoutAddingStore() { _unitWork.Stores.FindStore(_store.StoreName).Returns(_store); var manager = new Storemanager(_unitWork, _store); Assert.That(_uut.Store, Is.EqualTo(manager.Store)); }
public void SetUp() { _unitWork = Substitute.For<IUnitOfWork>(); _store = new Store() {StoreName = "Aldi", StoreId = 22}; _product = new Product() {ProductName = "Banan", ProductId = 10}; _uut = new Storemanager(_unitWork, _store); }