コード例 #1
0
        public void AddTrader_CorrectTrade_PassTheAddAndSaveChanges()
        {
            //Act
            _businessService.AddTrader("Name", "Surname", 1000, "phoneNumber");

            //Assert
            Received.InOrder(() =>
            {
                _dataContext.Add(Arg.Any <Trader>());
                _dataContext.SaveChanges();
            });
        }