Example #1
0
        public void CreatedPortfolio()
        {
            var port = CreatePortfolio();

            port.Should().NotBeNull();
            var newPort = new DebtPortfolio(port.ToList());

            newPort.Should().NotBeNullOrEmpty();
            newPort.Should().Equals(port);
        }
        public void ConvertToJson()
        {
            var str = JsonConvert.SerializeObject(debtPortfolio);

            debtPortfolio.Should().Equals(JsonConvert.DeserializeObject(str));
        }