public async Task should_delegate_to_repo_to_look_for_duplicate_object()
        {
            var cursor = new Mock <IAsyncCursor <LocalizationModel> >();

            StubFindAsync(cursor.Object);
            var model = new LocalizationModel();

            _repository.Setup(x => x.SaveAsync(
                                  LocalizationController.CollectionName,
                                  model)).ReturnsAsync(model);

            await _controller.AddNewItem(model);

            _repository.Verify(x => x.FindAsync(LocalizationController.CollectionName,
                                                It.Is <Expression <Func <LocalizationModel, bool> > >(e => Lambda.Eq(e, f => f.ObjectId == model.ObjectId && f.ObjectName == model.ObjectName))));
        }