public void CheckChooseDeliveryType() { Mock <IOrderRepository> repositoryMock = new Mock <IOrderRepository>(); ShopService ss = new ShopService(repositoryMock.Object); var order = OrderObjectMother.CreateOrderWithNoItems(); string deliveryType = "newDeliveryType"; ss.ChooseDeliveryType(order, deliveryType); Assert.AreEqual(order.DeliveryType, deliveryType); }